package com.koron.order.linedefect.defectPending.bean.po;


import com.koron.bean.annocation.FillField;
import com.koron.bean.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 缺陷工单下缺陷待处理信息从表(DefectPending)实体类
 *
 * @author zhouj
 * @since 2022-02-09 10:36:17
 */
@Data
@ApiModel("缺陷工单下缺陷待处理信息从表")
public class DefectPendingPo extends BaseBean {

    @ApiModelProperty(value = "待处理工单编号")
    private String code;

    @ApiModelProperty(value = "待处理工单标题")
    private String title;

    @ApiModelProperty(value = "缺陷工单ID")
    private String defectId;

    @ApiModelProperty(value = "预计处理时间")
    private Date expectProcessTime;

    @ApiModelProperty(value = "申请原因")
    private String reason;

    @FillField(alias = "orgId")
    @ApiModelProperty(value = "申请人单位ID")
    private String deptId;

    @FillField(alias = "orgName")
    @ApiModelProperty(value = "申请人单位名字")
    private String deptName;

    @ApiModelProperty(value = "工单状态")
    private String status;

    @ApiModelProperty(value = "封存缺陷工单的状态(在待处理流程审核通过后记录,方便后面激活)")
    private String defectStatus;

    @ApiModelProperty(value = "是否有权限保存、提交;规则：草稿只能由创建人保存、提交。")
    private boolean hasSubmitPermission;

}